package edu.ahut.corejava3;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

/**
 * 大致框架，自己完善
 */
public class Exp05MiniUserMIS {
    static Scanner cin = new Scanner(System.in);

    static class Mis {
        private Map<String, String> users = new HashMap<>();

        boolean register(String username, String password1, String password2) {
            return false;
        }

        boolean update(String username, String oldPassword, String newPassword1, String newPassword2) {
            return false;
        }

        boolean login(String username, String password) {
            return true;
        }


    }

    public static void main(String[] args) {
        Mis mis = new Mis();
        while (cin.hasNext()) {
            String input = cin.next().toLowerCase();
            if (input.contains("login")) {
                System.out.println();
                String username = cin.next();
                String password = cin.next();

                if (mis.login(username, password)) {
                    System.out.println("欢迎登录");

                }
            }
        }

    }
}
